/*
 *  uiSubmenuItem.cpp
 *  trail-map-editor
 *
 *  Created by Giorgio Tino on 3/24/13.
 *  Copyright 2013 __MyCompanyName__. All rights reserved.
 *
 */

#include "ui.h"

uiSubmenuItem::uiSubmenuItem(const char* name, const char* legend)
: name(0)
, legend(0)
{
	if(name)
		this->name = ulStrDup(name);
	
	if(legend)
		this->legend = ulStrDup(legend);
}

uiSubmenuItem::~uiSubmenuItem()
{
	if(this->name)
	{
		delete[] this->name;
		this->name = NULL;
	}
	
	if(legend)
	{
		delete[] this->legend;
		this->legend = NULL;
	}
}